<?php
$tpl_name = $_GET['tpl_name'];
$file_path = "D:/sitestar_install_file/tpl_service/templates/sitestar27_data/"; 

$filename = $file_path."{$tpl_name}.zip";
if(!file_exists($filename)) return "error";
$size = filesize($filename);
echo $size;
?>